import request from '@/utils/request'

//查询用户列表
export function getUserList(query) {
  return request({
    url: '/system/user/getLowerLevelUsers',
    method: 'post',
  })
}

export function getUserList1(query) {
  return request({
    url: '/system/user/getLowerLevelUsers1',
    method: 'post',
  })
}

// 查询充值订单列表
export function listList(query) {
  return request({
    url: '/whty/list/list',
    method: 'get',
    params: query
  })
}

// 查询子订单 在 subOrderNo 传 父订单参数
export function getSonList(query) {
  return request({
    url: '/whty/list/sonList',
    method: 'get',
    params: query
  })
}



// 查询充值订单详细
export function getList(id) {
  return request({
    url: '/whty/list/' + id,
    method: 'get'
  })
}

// 新增充值订单
export function addList(data) {
  return request({
    url: '/whty/list',
    method: 'post',
    data: data
  })
}

// 修改充值订单
export function updateList(data) {
  return request({
    url: '/whty/list',
    method: 'put',
    data: data
  })
}

// 删除充值订单
export function delList(id) {
  return request({
    url: '/whty/list/' + id,
    method: 'delete'
  })
}

// 导出充值订单
export function exportList(query) {
  return request({
    url: '/whty/list/export',
    method: 'get',
    params: query
  })
}
// 导出充值订单
export function exportListOrder(query) {
  return request({
    url: '/whty/list/export?orders='+query,
    method: 'get',
  })
}

// 企业充值
export function rechargeAmount(query) {
  return request({
    url: '/whty/record/rechargeAmount',
    method: 'post',
    data: query
  })
}







